<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="/view/inc/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<security:csrfMetaTags/>
<script type="text/javascript" src='${basepath}view/sys/file/sysfilelist.js'></script>
<script type="text/javascript">
$(function() {
	init();
});
</script> 
</head>
<body>
<div class="easyui-layout"
	 data-options='fit:true,border:false'>
<div class="search" style="height: 50px"
	 data-options="
		region:'north'">
	<table class='noborder'>
		<tr>
			<th><label>附件类型:</label></th>
			<td><input  class="easyui-textbox" data-options="prompt:'输入附件类型'" name="q_type"  id="q_type" ></input></td>
			<th><label>附件名称:</label></th>
			<td><input  class="easyui-textbox" data-options="prompt:'输入附件名称'" name="q_name"  id="q_name" ></input></td>
			<th><label>附件后缀:</label></th>
			<td><input  class="easyui-textbox" data-options="prompt:'输入附件后缀'" name="q_suffix"  id="q_suffix" ></input></td>
			<th><label>业务编号:</label></th>
			<td><input  class="easyui-textbox" data-options="prompt:'输入业务编号'" name="q_bizCode"  id="q_bizCode" ></input></td>
			<th><label>业务类型:</label></th>
			<td><input  class="easyui-textbox" data-options="prompt:'输入业务类型'" name="q_bizType"  id="q_bizType" ></input></td>
			<td><a href="javascript:loadSysFile()"class="easyui-linkbutton" plain="true" iconCls="icon-search">查询</a></td>
		</tr>
	</table>
</div>
<div data-options="region:'center'">
	<table id="sysfiledg" class="easyui-datagrid"
		data-options="
				toolbar: '#tb',
				onDblClickRow:function(rowIndex, rowData){
									//SKY_EASYUI.beginEdit('sysfiledg',rowIndex);
							  }
			">
		<thead>
			<tr>
				<th data-options="field: 'checked', checkbox:true"></th>
					<th data-options="field:'type',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">附件类型</th>
					<th data-options="field:'name',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">附件名称</th>
					<th data-options="field:'size',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">附件大小</th>
					<th data-options="field:'path',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">附件保存路径</th>
					<th data-options="field:'suffix',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">附件后缀</th>
					<th data-options="field:'bizCode',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">业务编号</th>
					<th data-options="field:'bizType',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">业务类型</th>
					<th data-options="field:'note',width:180,
					editor:{
							type:'textbox',
							options:{
								required:true
							}}">备注</th>
			</tr>
		</thead>
	</table>
</div>
</div>
<div id="tb" style="height: auto">
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-add',plain:true" onclick="addSysFile()">增加</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-edit',plain:true" onclick="editSysFile()">修改</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-20130408025545236_easyicon_net_30',plain:true" onclick="delSysFile()">删除</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
		data-options="iconCls:'icon-06',plain:true" onclick="detailSysFile()">查看明细</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
	   data-options="iconCls:'icon-folder_add',plain:true" onclick="uploadSysFile()">附件上传</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
	   data-options="iconCls:'icon-folder_explore',plain:true" onclick="downloadSysFile()">附件下载</a>
	<a href="javascript:void(0)" class="easyui-linkbutton"
	   data-options="iconCls:'icon-folder_explore',plain:true" onclick="downloadZipSysFile()">附件压缩下载</a>
</div>
</body>
</html>